package put.cs.two.to.tsp;

import put.cs.two.to.tsp.calculators.base.AbstractExperiment;
import put.cs.two.to.tsp.io.NodeSetFileReader;
import put.cs.two.to.tsp.models.NodeSet;
import put.cs.two.tsp.experiments.GreedyExperiment;

public class TSPSolver {
    public static void main(String[] args) {
        if (args.length < 1) {
            System.err.println("Specify input file");
            System.exit(1);
        }

        NodeSetFileReader reader = new NodeSetFileReader(args[0]);
        NodeSet nodeSet = reader.readNodeSet();

        AbstractExperiment experiment = new GreedyExperiment();
        experiment.doWork(nodeSet);
    }
}
